import request from '@/utils/request'
/*.then(res => {
    // 返回数据
})
    .catch(err => {
        // 异常情况
    })*/
/*     FleetManage.getFleet(jsonData)
        .then(res => {
          // 返回数据
          res = res.data;

        }).catch(err => {
          // 异常情况
          console.log(err);
        })*/
// •	获取消息数据接口


export default {
  getFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleet',
      method: 'post',
      data
    })
  },
  getSystem (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getSystem',
      method: 'post',
      data
    })
  },
  getAllFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getAllFleet',
      method: 'post',
      data
    })
  },  getProvince (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getProvince',
      method: 'post',
      data
    })
  }, getCityByProvince (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getCityByProvince',
      method: 'post',
      data
    })
  },addFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/addFleet',
      method: 'post',
      data
    })
  },updateFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/updateFleet',
      method: 'post',
      data
    })
  },deleteFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/deleteFleet',
      method: 'post',
      data
    })
  },
}
